<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<s:head theme="ajax" />
		<title>My JSP 'myTopics.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="../css/teacher.css">
		<link rel="stylesheet" type="text/css" href="../css/content.css">
		<link rel="stylesheet" type="text/css" href="../css/topicsTable.css">
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/teacher.js"></script>

	</head>

	<body>
		<div id="mtTopics_container">
			<table id="myTopicsTable">
				<s:if test="topics!=null">
					<tr>
						<td class="myTopics_1">
							课题名:
						</td>
						<td class="myTopics_2">
							${topics.topicsName }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							课题类别:
						</td>
						<td class="myTopics_2">
							${topics.topicsClass.topicsClassName }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							课题内容:
						</td>
						<td class="myTopics_2">
							${topics.topicsContent }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							课题要求:
						</td>
						<td class="myTopics_2">
							${topics.topicsRequire }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							出题老师:
						</td>
						<td class="myTopics_2">
							<a href="javascript:void(0)"
								onclick="showTeacher('${topics.teacher.teacherNum }')">${topics.teacher.name
								}</a>
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							审题老师:
						</td>
						<td class="myTopics_2">
							<a href="javascript:void(0)"
								onclick="showTeacher('${topics.autiding.teacherNum }')">${topics.autiding.name
								}</a>
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							所属研究所:
						</td>
						<td class="myTopics_2">
							${topics.institute.instituteName }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							出题日期:
						</td>
						<td class="myTopics_2">
							${topics.submitTime }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							审题日期:
						</td>
						<td class="myTopics_2">
							${topics.autidingTime }
						</td>
					</tr>
					<tr>
						<td class="myTopics_1">
							选题日期:
						</td>
						<td class="myTopics_2">
							${topics.choiceTime }
						</td>
					</tr>
					<tr>
						<td class="td_1">
							任务书:
						</td>
						<td class="td_2">
							<s:if test="taskFiles!=null">
								<s:iterator value="taskFiles" id="task" status="taskt">
									<div>
										<a href=download.action?url=${task.fileUrl}>${task.fileName}</a>
									</div>
								</s:iterator>
							</s:if>
							<s:else>
							暂无任务书
						</s:else>
						</td>
					</tr>
					<tr>
						<td class="td_1">
							资料:
						</td>
						<td class="td_2">
							<s:if test="resourceFile!=null">
								<s:iterator value="resourceFile" id="resource"
									status="resourcet">
									<div>
										<a href=download.action?url=${resource.fileUrl}>${resource.fileName}</a>
									</div>
								</s:iterator>
							</s:if>
							<s:else>
							暂无资料
						</s:else>
						</td>
					</tr>
					<tr>
						<td>
							初稿时间点:
						</td>
						<td>
							<s:if test="firstDraftTime!=null">
							${firstDraftTime.p_time }
						</s:if>
							<s:else>
							初稿时间点还未设置
						</s:else>
						</td>
					</tr>
					<tr>
						<td>
							外文类型:
						</td>
						<td>
							<s:if test="languageType!=null">
								<s:if test='languageType == "0"'>
								老师指定
							</s:if>
								<s:else>
								学生指定
							</s:else>
							</s:if>
							<s:else>
							外文类型还未指定
						</s:else>
						</td>
					</tr>
					<s:if test="firstDraft!=null">
						<tr>
							<td>
								开题报告初稿:
							</td>
							<td>
								<a href=download.action?url=${firstDraft.fileUrl}>${firstDraft.fileName}</a>
							</td>
						</tr>
					</s:if>
					<s:if test="lastDraft!=null">
						<tr>
							<td>
								开题报告终稿:
							</td>
							<td>
								<a href=download.action?url=${lastDraft.fileUrl}>${lastDraft.fileName}</a>
							</td>
						</tr>
					</s:if>
					<s:if test="lastDraft!=null">
						<tr>
							<td>
								开题报告答辩结果:
							</td>
							<td>
								<a href=download.action?url=${reportResult.fileUrl}>${reportResult.fileName}</a>
							</td>
						</tr>
					</s:if>
					<tr>
						<td>
							文论纲要时间点:
						</td>
						<td>
							<s:if test="firstDraftTime!=null">
						${firstDraftTime.p_time }
					</s:if>
							<s:else>
						文论纲要时间点还未设置
					</s:else>
						</td>
					</tr>
					<s:if test="paperPlatform!=null">
						<tr>
							<td>
								论文纲要:
							</td>
							<td>
								<a href=download.action?url=${paperPlatform.fileUrl}>${paperPlatform.fileName}</a>
							</td>
						</tr>
					</s:if>
					<s:if test="records!=null">
						<tr>
							<td class="td_1">
								指导记录:
							</td>
							<td class="td_2">

								<s:iterator value="records" id="record" status="st">
									<div>
										<a href=download.action?url=${record.fileUrl}>${record.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="paper!=null">
						<tr>
							<td class="td_1">
								论文:
							</td>
							<td class="td_2">

								<s:iterator value="paper" id="paperc" status="st">
									<div>
										<a href=download.action?url=${paperc.fileUrl}>${paperc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="oneAuditing!=null">
						<tr>
							<td class="td_1">
								一审表:
							</td>
							<td class="td_2">

								<s:iterator value="oneAuditing" id="oneAuditingc" status="st">
									<div>
										<a href=download.action?url=${oneAuditingc.fileUrl}>${oneAuditingc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="twoAuditing!=null">
						<tr>
							<td class="td_1">
								二审表:
							</td>
							<td class="td_2">

								<s:iterator value="twoAuditing" id="twoAuditingc" status="st">
									<div>
										<a href=download.action?url=${twoAuditingc.fileUrl}>${twoAuditingc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="replyRecorder!=null">
						<tr>
							<td class="td_1">
								答辩记录:
							</td>
							<td class="td_2">

								<s:iterator value="replyRecorder" id="replyRecorderc"
									status="st">
									<div>
										<a href=download.action?url=${replyRecorderc.fileUrl}>${replyRecorderc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="apply!=null">
						<tr>
							<td class="td_1">
								考核表:
							</td>
							<td class="td_2">

								<s:iterator value="apply" id="applyc" status="st">
									<div>
										<a href=download.action?url=${applyc.fileUrl}>${applyc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<s:if test="againReply!=null">
						<tr>
							<td class="td_1">
								再次答辩申请表:
							</td>
							<td class="td_2">

								<s:iterator value="againReply" id="againReplyc" status="st">
									<div>
										<a href=download.action?url=${againReplyc.fileUrl}>${againReplyc.fileName}</a>
									</div>
								</s:iterator>
							</td>
						</tr>
					</s:if>
					<tr>
						<td class="td_1">
							答辩成绩:
						</td>
						<td class="td_2">
							<s:if test='topics.replyScore=="0"'>
					还无成绩
				</s:if>
							<s:elseif test='topics.replyScore=="1"'>
					不及格
				</s:elseif>
							<s:elseif test='topics.replyScore=="2"'>
					及格
				</s:elseif>
							<s:elseif test='topics.replyScore=="3"'>
					中等
				</s:elseif>
							<s:elseif test='topics.replyScore=="4"'>
					良好
				</s:elseif>
							<s:elseif test='topics.replyScore=="5"'>
					优秀
				</s:elseif>
						</td>
					</tr>
				</s:if>
				<s:else>
					<tr>
						<td>
							您还没有选择课题
						</td>
					</tr>
				</s:else>
			</table>
		</div>
		<%@ include file="/teacher.jsp"%>
		<div id="mask" style="display: none"></div>
	</body>
</html>
